package QunarTest;

import android.support.test.runner.AndroidJUnit4;
import android.support.test.uiautomator.UiAutomatorInstrumentationTestRunner;
import android.test.AndroidTestRunner;
import android.util.Log;
import AndroidAction.ElementsAction;

import junit.framework.TestListener;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;

import static HomeElements.Action.startQunar;
import static HomeElements.Action.stopQunar;
import static HomeElements.Action.waitShouYeElement;
import static HomeElements.AssertElementsContent.wifiDes;
import static HomeElements.WatcherAll.homeShengJiWatcher;

/**
 * Created by zhe.xiao on 2017/6/16.
 */
public class QuanrTestCase {

//    TestListener listener = new QunarTestListener();

    @Before
    public void setUp() {
        stopQunar();
        startQunar();
//        ElementsAction.getInstrent().startApp("com.Qunar");
        homeShengJiWatcher();
        waitShouYeElement();
    }

    @After
    public void tearDown() {
//        stopQunar();

    }

}
